<?php /* Smarty version 2.6.13, created on 2011-08-03 11:17:18
         compiled from upload.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('block', 't', 'upload.tpl', 41, false),array('function', 'cycle', 'upload.tpl', 69, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "common/header.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<script language="javascript">
<?php echo '
	function resizeClick()
	{
		if($(\'resize\').checked)
		{
			$(\'w\').disabled = \'\';
			$(\'h\').disabled = \'\';
		}
		else
		{
			$(\'w\').disabled = \'disabled\';
			$(\'h\').disabled = \'disabled\';
		}
	}
'; ?>

</script>
<body>
<?php $this->assign('upload', 'current'); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "common/toptab.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<div id="tabs4">
</div>
<div id="option_response" class="wrap ajaxResponse"></div>

<!-- Build the page here -->
<div class="wrap" style="min-height: 400px">
<table width="100%" height="100%" cellpadding="0" cellspacing="0">
	<tr>
	<td width="54px" height="43px" class="fr_lefttop"></td>
	<td height="43px" class="fr_centertop" ></td>
	<td width="48px" height="43px" class="fr_righttop"></td>
	</tr>
	<tr>
	<td width="54px" class="fr_leftmiddle" >&nbsp;</td>
<td class="fr_centermiddle">
<?php if ($this->_tpl_vars['message'] != null): ?>
	<div id="ajaxResponse1" class="ajaxResponse fade" style="display:block"><?php echo $this->_tpl_vars['message']; ?>
</div>
<?php endif; ?>
<h2><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Upload<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></h2>
<?php if ($_SESSION['u_isadmin'] == '1'): ?>
 <form enctype="multipart/form-data" action="" method="POST">
    <input type="hidden" name="uploadfile" value="upload" />
    <?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Send this file:<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?> <input size="100" name="userfile" type="file" />
   
    <p class="submit" align = "right">
    <input type="submit" value="<?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Upload Selected File<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>" />
    </p>
</form>
<br /> 
<form name="review" id="review" method="post" action="?mod=upload">
	<input type="hidden" name="changeShowImg" value="changeShowImg">
	<label for="showImg">
	<input <?php if ($_SESSION['showImg'] == '1'): ?> checked <?php endif; ?> id="showImg" name="showImg" type="checkbox" onClick="review.submit()" value="1"/>
	<?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Show image<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></label>
</form>
<table class="widefat">
		<thead>
		<tr>
	        <th scope="col"><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Name<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></th>
	        <th scope="col"><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Path<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></th>
	        <th scope="col" style="text-align:center"><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>For Download<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></th>
	        <th scope="col" style="text-align: center"><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Action<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></th>
		</tr>
		</thead>
		<tbody id="table">
		<?php $_from = $this->_tpl_vars['FILES']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['cat'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['cat']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['item']):
        $this->_foreach['cat']['iteration']++;
?>
			<tr id="" class="<?php echo smarty_function_cycle(array('values' => ",alternate"), $this);?>
">
				<th scope='row'>
				<?php if ($this->_tpl_vars['item']['image'] == '1' && $_SESSION['showImg'] == '1'): ?>
					<img src="../upload/files/<?php echo $this->_tpl_vars['item']['name']; ?>
" width="64" height="64" /><br />
				<?php else: ?>
					<?php echo $this->_tpl_vars['item']['name']; ?>

				<?php endif; ?>
				</th>
				<td><?php echo $this->_tpl_vars['item']['link']; ?>
</td>
				<td style="text-align:center"><?php if ($this->_tpl_vars['item']['type'] != ''): ?>x<?php endif; ?></td>
				<td style="text-align: center">
				<a href="?mod=upload&del=<?php if ($this->_tpl_vars['item']['type'] != ''):  echo $this->_tpl_vars['item']['type']; ?>
/<?php endif;  echo $this->_tpl_vars['item']['name']; ?>
" class='delete'><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Delete<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></a>
				</td>
			</tr>
		<?php endforeach; endif; unset($_from); ?>
		</tbody>
</table>
<?php endif; ?>
</td>
<td width="48px" class="fr_rightmiddle"></td>
	</tr>
	<tr>
	<td width="54px" height="60px" class="fr_leftbot" ></td>
	<td height="60px" class="fr_centerbot"></td>
	<td width="48px" height="60px" class="fr_rightbot" ></td>
	</tr>
</table>
</div>
</body>